tasks 3-4 solved