HW3 Parts 1-3