Chapter 4 Registration example