def extract(ts):
    """ Retrieve lists of C, T, D from taskset ts """
    C = []
    T = []
    D = []
    for i in range(len(ts)):
        C.append(ts[i].C)
        T.append(ts[i].T)
        D.append(ts[i].D)

    return C, T, D