Measuring the Average Speed using your phone