Programming Assignment 2 code added to the required file