implemented rich comparision methods