Almost have Learn node working in java