Implement boolean operations and fix typo.