submitting code for Assignment 2