Added resource-saving method
new way to calculate speed
New resource-saving method
added new way to calculate speed
Removed unused import
new way to calculate speed
new resouce saving method