Put Grades in drop-down menus and put functions in separate file.