start refactoring grades call
wire up offline grading task, and add initial tests.