changes to chp.2 and fixed variable table