update the Solution of task 1