Added type rule to rule definition