Groovy productional logic - Laboratory work