Added third task and small changes to the second task made