HW Assignment3 Parts 1-3