Added implementation of scenegraph