simply take that example and re-work it, omitting the section dealing with the initial pulse.