Chapter 2: add contentsRect