rewrited task 1