Creating an Expandable Program using the Heap