Implement AND and OR Rules