Modified sequence and class diagrams