apply class diagram