added example file to the observer pattern and the adapter pattern