Add first simple Java implementation