add a demo of construct list of runtime dependent length