moved example to example controller and view