an electric car is connected to two other cars