Added UML class diagrams for both implementations.