Allocating Objects on the Heap