The Step by Step Guide To Bang bang control and switching functions