Edited code of tables in chapters 4-7.