A simple EAC rule engine for teaching purposes