Coordinate Systems and Distance Formula