Right now we allocate memory on the general heap -- might be a better example to use the scratch allocator.