Exercises from 'An Introduction to design patterns in C++ and Qt 2nd edition'.