renamed createTable to dataGen and added another creation method to it