Updating the switch and methods for the switch statement