added Scram encoding class