implemented mediator pattern
Merge pull request #6 from axhm3a/master

implemented mediator pattern