rewrite of the getMarks() method (in progress)