timestep function included in the system class