b_coding function

The Coding of the Boundaries