modified the binding sample in ch8