added temporary rep calc to grades_controller