Task #3 solving

Please add my task#3 solving