sketched some classes for event handling
simplied grammar for rule examples