example using edit distances and a result table