comp502 hw4 p2 nearly done