working on implementing Learn node in pure java