adding Comparison functionality