Rewrite task3