Added task 2 of assignment 3