added sample code from wiki
made executable