private ArrayList Parts; //in constructor: Parts = new ArrayList(); //now i want to add "car" and "tire" for instance (using your solution)