Design Patterns in Java – Short examples