HW1 Solution