import java.util.ArrayList;

public class VehicleRegistry {
	
	private ArrayList<Vehicle> vehicles;

	public VehicleRegistry(ArrayList<Vehicle> vehicles) {
		this.vehicles = vehicles;
	}

	public ArrayList<Vehicle> getvehicles() {
		return vehicles;
	}

	public void setvehicles(ArrayList<Vehicle> vehicles) {
		this.vehicles = vehicles;
	}
	
	public void addvehicle(Vehicle vehicle) {
		vehicles.add(vehicle);
	}
	
	public void removevehicle(Vehicle vehicle) {
		vehicles.remove(vehicle);
	}
}

@@ -1,8 +1,95 @@
+/* This class describes a registry able to contain vehicles within an array list! */ %0A%0A
 import j
@@ -140,17 +140,16 @@
 istry %7B%0A
-%09
 %0A%09privat
@@ -179,16 +179,17 @@
 hicles;%0A
+%09
 %0A%09public
@@ -209,70 +209,94 @@
 try(
-ArrayList%3CVehicle%3E vehicles) %7B%0A%09%09this.vehicles = vehicles;
+) %7B%0A%09%09this.vehicles = new ArrayList%3CVehicle%3E(); // Creates an empty array list...
 %0A%09%7D%0A
+%09
 %0A%09pu
@@ -322,17 +322,17 @@
 cle%3E get
-v
+V
 ehicles(
@@ -334,16 +334,61 @@
 cles() %7B
+ // Returns the list containing ALL vehicles!
 %0A%09%09retur
@@ -419,17 +419,17 @@
 void set
-v
+V
 ehicles(
@@ -458,16 +458,52 @@
 icles) %7B
+ // Sets a list containing vehicles!
 %0A%09%09this.
@@ -522,25 +522,24 @@
 ehicles;%0A%09%7D%0A
-%09
 %0A%09public voi
@@ -543,17 +543,17 @@
 void add
-v
+V
 ehicle(V
@@ -573,31 +573,216 @@
 e) %7B
-%0A%09%09vehicles.add(vehicle
+ // Adds a single vehicle to the registry!%0A%09%09vehicles.add(vehicle);%0A%09%7D%0A%0A%09public Vehicle getVehicle(int pos) %7B // Returns a single vehicle from the position %22pos%22 within the registry!%0A%09%09return vehicles.get(pos
 );%0A%09
@@ -804,17 +804,17 @@
 d remove
-v
+V
 ehicle(V
@@ -830,16 +830,54 @@
 hicle) %7B
+ // Removes the vehicle from the list!
 %0A%09%09vehic
@@ -900,10 +900,12 @@
 le);%0A%09%7D%0A
+%09%0A
 %7D%0A

Update VehicleRegistry.java