This file contains the code to assignment 2