Programming homework1 for CSE 420