class diagram and sequences