designing a simulation and implementing a program that uses classes