Solutions for HW1