test of design patterns, and some other stuff