tasks 3-12 solved