Parse credits and insert them into hash map to prepare weight function.
todo: Complete weight function (fill hash map of exams and grades)