add demo for generating and reading data