divide the list of enrolled and completed courses