added example file to the observer pattern