Exercise 2- added pointers