Updated code now includes add courses functionality