class Vehicle {
    public long VIN;
    public String ownerName = "<unknown owner>";
    public float speed = 0;
    public float direction = 0;

    public static long nextVIN = 0;

    public Vehicle() {
	VIN = nextVIN++;
    }

    public Vehicle(String name) {
	this();
	ownerName = name;
    }

    public static void main(String args[]) {
	Vehicle myCar = new Vehicle("Peter");
	myCar.speed = 65;
	myCar.direction = 90;

	Vehicle momsCar = new Vehicle("Nancy");
	momsCar.speed = 55;
	momsCar.direction = 45;

	Vehicle dadsCar = new Vehicle("Richard");
	dadsCar.speed = 75;
	dadsCar.direction = 0;

	System.out.println("Vehicle owned by " + myCar.ownerName +
	                   " is traveling " + myCar.speed +
	                   " MPH at " + myCar.direction + " degrees.");
	System.out.println("Vehicle owned by " + momsCar.ownerName +
	                   " is traveling " + momsCar.speed +
	                   " MPH at " + momsCar.direction + " degrees.");
	System.out.println("Vehicle owned by " + dadsCar.ownerName +
	                   " is traveling " + dadsCar.speed +
	                   " MPH at " + dadsCar.direction + " degrees.");
    }
}
