Initial commit for the Java version