Finished the data dependent example of generation code