Add simple java implementation