Simple example of how to manage an object into the heap without the need to explicitly delete it.