added cm_distance plotting example