tasks 2-3 solved