added new version of task1, added task2 and task4