comparison operators using lists