Reformated code in task3