import java.util.ArrayList;

public class AccessoryRegistry {
	
	private ArrayList<Accessory> accessories;

	public AccessoryRegistry(ArrayList<Accessory> accessories) {
		this.accessories = accessories;
	}

	public ArrayList<Accessory> getvehicles() {
		return accessories;
	}

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

@@ -1,8 +1,98 @@
+/* This class describes a registry able to contain accessories within an array list! */ %0A%0A
 import j
@@ -145,17 +145,16 @@
 istry %7B%0A
-%09
 %0A%09privat
@@ -220,126 +220,194 @@
 try(
-ArrayList%3CAccessory%3E accessories) %7B%0A%09%09this.accessories = accessories;%0A%09%7D%0A%0A%09public ArrayList%3CAccessory%3E getvehicles() %7B
+) %7B%0A%09%09this.accessories = new ArrayList%3CAccessory%3E(); // Creates an empty array list...%0A%09%7D%0A%0A%09public ArrayList%3CAccessory%3E getAccessories() %7B // Returns the list containing ALL accessories!
 %0A%09%09r
@@ -445,22 +445,25 @@
 void set
-vehicl
+Accessori
 es(Array
@@ -492,16 +492,55 @@
 ories) %7B
+ // Sets a list containing accessories!
 %0A%09%09this.
@@ -565,25 +565,24 @@
 ssories;%0A%09%7D%0A
-%09
 %0A%09public voi
@@ -586,23 +586,25 @@
 void add
-vehicle
+Accessory
 (Accesso
@@ -610,51 +610,251 @@
 ory 
-vehicle) %7B%0A%09%09accessories.add(vehicle
+accessory) %7B // Adds a single accessory to the registry!%0A%09%09accessories.add(accessory);%0A%09%7D%0A%09%0A%09public Accessory getAccessory(int pos) %7B // Returns a single accessory from the position %22pos%22 within the registry!%0A%09%09return accessories.get(pos
 );%0A%09%7D%0A
-%09
 %0A%09pu
@@ -869,23 +869,25 @@
 d remove
-vehicle
+Accessory
 (Accesso
@@ -893,18 +893,60 @@
 ory 
-vehicle) %7B
+accessory) %7B // Removes the accessory from the list!
 %0A%09%09a
@@ -967,15 +967,17 @@
 ove(
-vehicle
+accessory
 );%0A%09

Update AccessoryRegistry.java