/****
 *
 * A car is another form of valuable asset.
 *
 */

public class Car implements Comparable<Car>, Valuable {

    public Car(String make, String model) {
        this.make = make;
        this.model = model;
    }

    public String getMake() {
        return make;
    }

    public double getValue() {
        return new BlueBook().lookupValue(this);
    }

    public String toString() {
        return make + " " + model + ", value: " + getValue();
    }

    public int compareTo(Car other) {
        if (getValue() < other.getValue()) return -1;
	if (getValue() == other.getValue()) return 0;
        return 1;
    }

    private String make;
    private String model;
}