tasks 5-6 solved