Factorising functionality between Pulses, example and Menu.

First working version of Pulses/examples/pulses/
Not very usable yet, but compiles and works a bit ;)