HW 6- task2. Completed.