For Programming assignment2