moved example to separate file