Samples for java8