def get_story_names(building, data):
    """Return list of unique story names from provided data.

    Parameters:
        building (Building): target building
        data (list): list of stories and spaces

    Returns:
        list: sequence of unique story names

    """

    names = []
    for row in data:
        if row[0].lower() == building.name.lower() and row[2] not in names:
            names.append(row[2])

    return names