Example of Memory Allocation and Free