extend and implement Distance word