Wrote initial scene graph code