Removed main method and changed fields to public final.