included car index in the set_occupied method