Sample solutions for HW3