Add System class which is a base class for classes that has dofs.