Get example program to work.
Append malloc header to rewritten code. Example compiles.