comparison functionality for Coding