Diagram from class