added grade calculations as well as borders around tables.