prototype: Add create_mapping_table; first, rough draft.

Probably final, also.