class diagram and sequence diagram