ex 4 task 2 and 3