implemented a few math and boolean operations