Added ex4 for lab 3 - pointers to functions