Implemented chain of resposibility pattern