Chapter02 rewrites