class Encode: sub classes for HDA, HTI, HDY, TTM added.