class for table creation