Moved example code to its own package