compiles and runs on Mac OS X