Samples of Design Patterns in Java