coding class and the simulation