moved some demo code to bottom of file