switch should be formatting as

````
switch (x) {
  case:
````

etc.

Also, how about in the switch doing `text = "No Error";` and then after the switch doing the `allocate` call?