def make_data(current_data):
    """ Formats the given data into the required form """
    x = []
    n = len(current_data)
    for i in range(n - 1):
        x.append(current_data[i])
    x.append(1)
    return x, current_data[n - 1]