changed input of number of car at main()