Corrected example controller