Completed two forms of table. One using in line and other creating table
body as function