Samples can run on osx 10.8 and above
Updated with more examples