adding comparison operators for message class