Modify method for creating courses