Continuing to implement comparison functions.

the test file has been updated. WIP