hw7, task 3.

phew...