moved example to controller