add class and student function