Moved WriteType.java to an inner class Type in Write.java