Problem Code - EDIST