Tasks 2-3 solved