Create distance.cls