Rule of five for class diagram