An Object-Oriented Simulation Program for CMS