continuation of ex 2 task 4