added exercise 2.4 from to obj-c exercieses