getMarks rewrite, almost complete