a simple Java project to demonstrate pattern-design