CS246 HW3 Q4