Code for course management module