For didactic purposes, define a base class SceneObject from which Scene and Shape derive.