Added Encoder Class

Added Encoder Class