Create buffer_generator.m