8th task from 3rd homework