encoding and decoding bloks | ScratchStats