work in progress on class based quality5.py