Exercise 4.2: layout