Heap Allocation example