my comp was complaining about atoi so I included std lib.h in table.cpp