solution to HW1