A very simple rule engine