assign ordered pair to each letter