dynamic table example slightly modified