refactoring table of ex 3.25