moved example code into example. package