tasks 5-9 solved