Zimmerman project//Encoder with more OO