Implement and, or, not

Implement and, or, not.