We could save some memory by not allocating new memory for every foo = 0