class for handling adaptive time steps.