chapter 6 -- boundaries and friction