Modified student to do state checking when calling certain methods