JM model diagram (including encoding and decoding)