Implemented the interval keywords function along with some
others that may be useful.
Next step is to write the test cases. In the future, should
write the tests first.