Complete the add course function