First java implementation done