added java file example of the sort of thing we want to do