COS 785 Assignment 2