Change main class to Encoder.java