Proof of concept of applying design patterns to the code for the class.