Implementation of Chord