added speed.py, which is to calcuate the speed per second