Move MyEventListener to functions package