update brainfuck example to use switch