CSE420 programming Homework 2