added class diagram and sequence diagram.