Codes for Assignment 1