add code example for controler
Few code examples