Moved ctime and cstdlib to the cpp file