Removed Java8 dependency from examples