A few Patterns implemented in Java