A simple ECA rule engine for teaching purposes