added wordDistance class