Fixed part2.
Fixed part3. This means that the entire hw3 is completed