encode and decode words | ScratchStats