moved example code to own unit