Text this: Discrete-time model for variable structure systems