Implementation of relational operators and money type