Updated so the program conforms to scene graph