added class diagram.