Adding the switch cases for divide and square root