added first version of interpretRules