begin refactoring student with ActiveRecord