almost finished with function to import courses