my Programming Assignment 2