program now waits user interaction to exit