working on making list operations compile in c++