Added to deallocation to end of main.cpp