code and comments for course project