Moved static example code into the real code