tasks 7-12 solved