Course Project 1 with commented code