Update cardinality in UML class diagram