Chapter4 Example10: removed redundant registration