Implemented xparse to use Course object