begin brainfuck implementation