Time-Varying Sliding Modes for Second and Third Order System