Submitted task #8

Maybe you can suggest some changes or additions, becouce i don't know if
the code is correct.