Implementing some Java Practices examples.