Added initial java code