Tasks 29-30 solved