added sample code for courses controller
added code to add a new course-pending