Added rules to handle `and`, `or`, `not` cases
Merge pull request #1 from tranca/master

Added rules to handle `and`, `or`, `not` cases