Tesla will invest in the development of the next generation of vehicles