what classes needed to become a dentist