Store object graph

Trying to write ruby in C++ bro. but lets do that. :D