Generate class diagram