Implement rules composition