refrmatting, added student and teacher api