I have a question regarding to using method in main class, here is my code for a Race class:

```
import java.util.ArrayList;

public class Race {

    private ArrayList<Car>cars;

    public Race(){
         cars = new ArrayList<Car>();
    }

    public void addCars(Car car){
        cars.add(car);
    }
}

```

The above is what I have done to make an arraylist for the cars that I am ready to put in by using a main method in another class:

```
public class Test {

    public static void main(String[] args) {
        Car toyota = new Car("Toyota",1.0,1.0,2.0,2.0);
        cars.addCars(toyota);
    }
}

```

However, it has error in the last line, it shows "cars cannot be resolved",I am not sure how should I fix it, maybe writing a getter method in the Race class?