Let me give you an example of a legal loophole. In my state Tennessee a motorized bicycle has to be 50cc or less, it also must have an automatic transmission system meaning the operator can't manually shift engine/motor driven gears. So I built a bike that shifted engine driven gears automatically.