Chapter 16. Determining resource location with rules