created program to calculate linear distance travelel by robot