def extract_name(data):
    """
    Extracts the full name, first name, and last name from a LinkedIn user's profile

    Parameters
    ----------
    data: the dictionary representation of a LinkedIn user's profile

    Returns
    -------
    The user's full name, first name, and last name
    """

    full_name = data['personal_info']['name']
    if ' ' in full_name:
        first_name = full_name[:full_name.index(' ')]
        last_name = full_name[full_name.rindex(' ') + 1:]
    else:
        first_name = ''
        last_name = ''

    return full_name, first_name, last_name