Using the principles of coupling and cohesion, rewrite this code, refactoring it at the same time: structure.py.
Hints and one answer