add kqueue example from 2011