Raw code in each class. XMap.java is done.