Added code to retrieve assignments to selected courses.