tasks 1-2 solved