Add EncodeTemplate Class For Encode Pattern