hints implemented, pep8 compliance