Copy code from ex16.c to Xcode project main.c. Program runs similar to ex16.c