Use case diagram and class diagram