adding Java back end