Add code for Assignment 2