def contains(item, elements):
    """Returns True if the item is contained in the list elements"""
    for element in elements:
        if item.equals(element):
            return True
    return False