hw3:: initital commit for the expansion of part3 from hw2