add base diagram element class