table file added with logic for drawing a table