my own solutions to some of the exercises of the book "An Introduction to Design Patterns in Cpp with Qt" 2nd ed