Photo of Mary Barra courtesy of GM.

Photo of Mary Barra courtesy of GM.

Most vehicles will become a "second office" in five years with the advent of autonomous vehicles, General Motors' CEO Mary Barra told Business Insider.

General Motors will eventually offer an autonomous version of its battery-electric Bolt, which it's introducing for the 2017 model year, to Lyft for ride sharing.

"When we step back and look at this broadly, we see it all fits together: electric, autonomous, and sharing. People still need to get from point A to point B, and we believe autonomous will be a big part of it," Barra told the outlet.

GM has been testing 40 autonomous Bolt cars on the streets of San Francisco and Scottsdale, Ariz., and has invested heavily in the technology.

Autonomous cars will reduce traffic fatalities, help keep cars connected to their driving environment, and help them choose the most efficient route, Barra said.