A Model of the Orion Nebula