added backwards compatibility demo
pep8 compliant