developed step function approximation class