Updated code

Removed errors from switch statement. Wanted an extra curly brace after
the instance variables and the end of the switch statement. Not sure
why. Strange. o_0