finished main and student class