added example with parameters defined in the controller scope