Adds Distance class