Revised code for second table
Revised code for second table