Added query and mediator pattern, also queryProcessor