basic heap pointers working