For Programming Assignment 2