Example of how to use Software design patterns in python 3