ex.3 updated, pep8