Java Samples for lessons