adding some more java code