HW Part 3 solved