tasks 5-7 solved