silly little alpha shift+matrix encoder/decoder for class