corrected Cubex.java