Implement contains()