Making nzeros an attribute of Problem