first version of coupled oscillator example
final version with nice performance