Update observing-sequences.md

Since the example doesn't execute without a definition of sample, you may just want to include it.