initial version of PS2-2.s for Assignment04