solution of tasks