fixing bugs Learn123.java