example with controller