initial classes for base encoders