A smart anti-theft device for cars