COMS 1004 Assignment 4