new examples from chapter 3
oscillator