Added general implementation for class diagram.