Create Foo.java

here is the extended description