Separate model from logic (Table class)