Completed example controller