Added task 7 solution