adding output of task 1 and task 2