write observer pattern
Merge pull request #3 from pruett/observer-pattern

write observer pattern