My refusal to cheat and check stack overflow cost me 2 hrs of CALayer coding. Eventually had to look at the back of the book for answers.