algo7 and refactoring imports and function calls