Added getAssignments function

gets the assignments of each course with the array produced from
getGrades