moved example code to it's own file