finished the final assignment
added comments