now able to generate chunks from a list of data