Convert the Drools official examples  to scala