Add subscriptions

Added a basic observer and some examples.