Passes hw3 part 1 and 2 with all steps