First exercise in chapter 1