fixing task 7, pylint 8