provide example controller code