first interation of programming assignment2