What is the class diagram and state diagram?