using bang-bang controllers