java: initial commit, working on solution