Added encoding class