diagram class