First version of rules definition works (but display is not perfect