added ngraph/ngraph as a base class for nball and nsphere