you don't need `selected_courses`, right? could you replace it with a `count` like in the method below this one?