Write front end code for student n teacher.