HW 6 - task 2. Fixed.