This requires much more code to be written and is less efficient than creating an array capable of storing ten elements.