Should be passing the table to the constructor