We review the classical and quantum theory of the Pais-Uhlenbeck oscillator as the toy-model for quantizing f(R) gravity theories.