home work 5 - more JS

tasks 1, 2, 3