exercise 2.47 frame selectors