code for course project