Made Encoder abstract