Solution to HW1