Adding exercise 4: dynamic table