HW Assignment 3 Parts 1 and 2