diff --git a/Humans and Superhumans.xml b/Humans and Superhumans.xml
new file mode 100644
index 0000000..9061ac3
--- /dev/null
+++ b/Humans and Superhumans.xml
@@ -0,0 +1 @@
+7VlNj9s2EP01BtpDAlGynd2j7d1kD9t0URdoeqQlWiJCiQZFf+XXdygOJVmSu0y8bnrwwliITzPkkO9xNJRG0SI/fFJ0k/0mEyZGYZAcRtHDKAw/kAD+G+BogWg6tUCqeGIh0gBL/o0hiH7pliesPDHUUgrNN6dgLIuCxfoEo0rJ/anZWorTUTc0ZT1gGVPRR//iic4sejcJGvyJ8TRzI5MA76xo/DVVclvgeKMwWld/9nZOXV9oX2Y0kfsWFD2OooWSUtur/LBgwiytWzbr9/HM3TpuxQrt4xBahx0VW5z60zanRYnR6aNbkXLPc0ELaM0znQsACVyuZaGXaGTaVPC0gOsYhmcKgB1TmsO6zvCGlhtA44yL5Jke5dYEWWpYNNeaZ1Lxb9AtdWPAbaVRIuH0xGJpPAEOAFWsBJsXN3NSQ8+01GgTSyHopuSrOuCcqpQXc6m1zNHIzfQjF2IhhVTVAjgaozmuGEyMHc6uOqm5hC3CZM60OoIJOtwj+7g7xtjcN1Ijd4hlLZlFEYIU5Z3WPTcUwwWyPMx41GMcJlfQHBozwJda8SIdhVNhyEj4Di5TXU07qjaNMeIwTbSA4U6MhvxSViRGDf3+fbxlHG83VHNZ/GgPNElACqWPe0f1QLE+VXyplfzKnC4KWe2IdUsqCLmdINhan90H5YbGEMxzZfMwbpA/kHQD7TOu2RJwE9Me0i1gEvpbiypxZDxJWGHULjXV1Erb6HgjgaZKKJM5/EA6i+D9ZDSBeS2gTZo2/Iy50gtZwPwor1TMYN/sWal9JR8OSx41Hk79NE6C8eUaHw9ovMOs4N1cZpl16Z78EK05kGFGcDz+aWh+eEd6XEd9rqMBDgVdMfEiS27l/6CsbYfb/4A+EnnmqLvL2ZsMZaiU6c+QpH759fU0VaKptUGHnYTuvytn6VlaD9dKeL2xjBnc9x7Hc/RPVdL0nC8af+eMPSP5vU7AntG0HK4T0cwmdM9wnPWFsdweDVfLLXeez4b78PLs4o4YrfSy3G6YutW91697o+lPLHwJGXquVMzlVfyvpZKMKfn5TKHsk7hKI7PZiguuj7da9KoJhwTDOvwZxSjpn7Fv1eiFBHqXo+QtEsfgkdmUIS53+BYitf2lpekTpiLPgWvz65Rjy1Zi84zoxOVWmP1P8yTxfUCT6Vvss/6xvXov1SUYzjoz844XWishTSE0B8iULch3i3qWpMwVarBYmUxlQcVjg/qRzg5cfzEcvQ+CKbb/rtqT+zG2X5jiMGdT/lVcwiKr4xcXh2mgR02OCe7fKymYt9yq2FlhIoLCEHZd67B8tuB6h70oJuA8tjsdbYgr7OlFVide1w3pvLAMP3TotlGiV/t1c6ej2rF+EHc6slPrdQR802PLDPfJ2YAj0g140lGi7bHRZb12flLtv6NwfDU6rcrw1uZuyfIV0a2wLrdP3Hn9TWGoLK+OIvaUQIJaWvhhBEcf1d8bXssH47eV05mtD83mE4dd/uYzUvT4Dw==
\ No newline at end of file
diff --git a/Product Inventory Control.xml b/Product Inventory Control.xml
new file mode 100644
index 0000000..937d19c
--- /dev/null
+++ b/Product Inventory Control.xml
@@ -0,0 +1 @@
+7VjbctowEP0aZugDHcsGhz4CSdrMkGlaMtNnYQtbE9lLZXHL13dlSeZik5BrX8hkMtLRri57zi4bWsEoW3+XdJ7eQsxEy/fidSu4bPl+/8LDvxrYGCAIQwMkkscGIltgwh+ZBa1fsuAxK/YMFYBQfL4PRpDnLFJ7GJUSVvtmMxD7p85pwmrAJKKijv7hsUrts3reFv/BeJK6k4lnV6Y0ekgkLHJ7XssPZuWPWc6o28vaFymNYbUDBVetYCQBlBll6xETOrQubMbv+shqdW/JcnWKg28cllQs7NPvJMQLDKm5ntq4kBQrngma42yYqkwgSHA4g1xNrJGeU8GTHMcRns8kAksmFcfADuyCgjmiUcpFPKYbWOhbFgqj5mbDFCR/xG2pOwOXpbIa8cM9i4n2RNhDVLICbe7c00kFjWmhrE0EQtB5wafVhTMqE54PQSnIrJF76TUXYgQCZBkAx2MwtCHDh7H10bCTikzMEQYZU3KDJi5BLP02Pbp2utpqjYQWS3d0VvlRq++k2nnLMQ4szc2UBzXKO3PJI1a+zIthoYPjh0JzEfMlDhM97Gj/gd4Hn4gpxXMkyJrhkTuWTc5/FzRXXG12tmh2PVAdhljtK65QEh6Y4yWHUpGzHaos5JQo2Ewd1WExpxHPk3Fpc9ndIr9t0DW0SrliE8T1nVZY7xAD3G8mysxNeRyzXKsNFFXUSEvraA74zpKo3hB/kbqR97XX6uG7Rjgn2zn+anOpRpDj+ygvVcRQtytWqFMl5zdLzmrMD0/TWL/7dol1axKrESv4YSkxxLpyS17FaoZc6BMcjfea5csOqVEd1KkOGigUdMrEHRRccdD7S2N7QO0nsEfIiSWi/3b2eg3s1TLafky0J0piDLWit7VjZFL8y7EcHxZM3emS0zYeX0xVWALeoH4S2ifO3lruF6lnq4/Z4SZ27k+UnyZfvO0vW77a5bOCwe5VTzy+2uJVlzDQVB4i5/L5SeWTkP5pCUhC/+0pGNZS8CZf4k1Bbm5pjt2nPPdnH9mfdXvPNmi+91EN2kW9QeOO/THXsdL1YyAlNVM/pJkmTezU5Qo8l5T/WFLCl3ZkjaIi3ju0ZP1zS/bO9JHgxKLwDi3Zt3pJoHF8D9WnQtvm/dOtVKdYZD9nx5zO/5V9fg0gQb2taC4C3Ze3FTjdfpNUru18Wxdc/QM=
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..16604de
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,33 @@
+
+
+ 4.0.0
+
+ crame.randall
+ ReusingClassesLabs
+ 1.0-SNAPSHOT
+
+
+
+ junit
+ junit
+ 4.12
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.6.0
+
+ 1.8
+ 1.8
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/ReusingClassesLabs/Human.java b/src/main/java/ReusingClassesLabs/Human.java
new file mode 100644
index 0000000..ac167dd
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/Human.java
@@ -0,0 +1,52 @@
+package ReusingClassesLabs;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class Human {
+ protected String name;
+ protected int age;
+ protected String gender;
+ protected String occupation;
+ protected String address;
+
+
+ public String getName(){
+ return name;
+ }
+
+ public void setName(String name){
+ this.name = name;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public String getGender(){
+ return gender;
+ }
+
+ public void setGender(String gender){
+ this.gender = gender;
+ }
+
+ public String getOccupation(){
+ return occupation;
+ }
+ public void setOccupation(String occupation){
+ this.occupation = occupation;
+ }
+
+ public String getAddress(){
+ return address;
+ }
+
+ public void setAddress(String address){
+ this.address = address;
+ }
+}
diff --git a/src/main/java/ReusingClassesLabs/InventoryManager.java b/src/main/java/ReusingClassesLabs/InventoryManager.java
new file mode 100644
index 0000000..4d7e670
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/InventoryManager.java
@@ -0,0 +1,21 @@
+package ReusingClassesLabs;
+
+import java.util.ArrayList;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class InventoryManager {
+ private ArrayList inventoryList = new ArrayList<>();
+
+
+public void addToInventory(Product product){
+ inventoryList.add(product);
+}
+public double sumOfInventory(){
+ double sum = 0;
+ for (Product item : inventoryList)
+ sum += item.getPrice() * item.getQuantity();
+ return sum;
+}
+}
diff --git a/src/main/java/ReusingClassesLabs/Main.java b/src/main/java/ReusingClassesLabs/Main.java
new file mode 100644
index 0000000..9612076
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/Main.java
@@ -0,0 +1,48 @@
+package ReusingClassesLabs;
+
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class Main {
+ public static void main (String[] args){
+ RotateArray object = new RotateArray();
+
+ int array[] = {1,2,3,4,5};
+
+ System.out.println("Original: ");
+ for(int i = 0; i < array.length; i++) {
+ System.out.print(array[i]);
+ }
+ System.out.println();
+
+ object.rotateArray(array, 2);
+ System.out.println("Rotated: ");
+ for(int j = 0; j < array.length; j++) {
+ System.out.print(array[j]);
+ }
+
+ Human bob = new Human();
+ SuperHuman steve = new SuperHuman();
+ Human stacy = new SuperHuman();
+
+ bob.setName("jim");
+ System.out.println(bob.getName());
+ steve.setAlignment("Good");
+ System.out.println(steve.getAlignment());
+ stacy.setGender("N/A"); //unable to set SuperHuman fields.
+ System.out.println(stacy.getGender());
+
+ Product pepsi = new Product("pepsi",3.99, 500);
+ Product popcorn = new Product("popcorn", 2.50, 3000);
+ Product skittles = new Product("skittles", 4.95, 1000);
+ InventoryManager theaterInventoryList = new InventoryManager();
+ theaterInventoryList.addToInventory(pepsi);
+ theaterInventoryList.addToInventory(popcorn);
+ theaterInventoryList.addToInventory(skittles);
+ System.out.print( "Total: " + theaterInventoryList.sumOfInventory());
+
+ }
+
+}
+
diff --git a/src/main/java/ReusingClassesLabs/Product.java b/src/main/java/ReusingClassesLabs/Product.java
new file mode 100644
index 0000000..1e67cd0
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/Product.java
@@ -0,0 +1,36 @@
+package ReusingClassesLabs;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class Product {
+ private double price;
+ private final String id;
+ private int quantity;
+
+ public Product(String id, double price, int quantity) {
+ this.price = price;
+ this.id = id;
+ this.quantity = quantity;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+
+ public double getPrice(){
+ return price;
+ }
+
+ public String getId(){
+ return id;
+ }
+
+ public void setQuantity(int quantity){
+ this.quantity = quantity;
+ }
+
+ public int getQuantity(){
+ return quantity;
+ }
+}
diff --git a/src/main/java/ReusingClassesLabs/RotateArray.java b/src/main/java/ReusingClassesLabs/RotateArray.java
new file mode 100644
index 0000000..60241a1
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/RotateArray.java
@@ -0,0 +1,24 @@
+package ReusingClassesLabs;
+
+import java.util.ArrayList;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class RotateArray extends ArrayList {
+ //private int currentArrayHolder, temporaryValue;
+
+ public void rotateArray(int array[], int rotate) {
+ int currentArrayHolder, temporaryValue;
+
+ for (int i = 0; i < rotate; i++) {
+ temporaryValue = array[0];
+ for (currentArrayHolder = 0; currentArrayHolder < array.length-1; currentArrayHolder++) {
+ array[currentArrayHolder] = array[currentArrayHolder+1];
+ }
+ array[array.length-1] = temporaryValue;
+
+
+ }
+ }
+}
diff --git a/src/main/java/ReusingClassesLabs/SuperHuman.java b/src/main/java/ReusingClassesLabs/SuperHuman.java
new file mode 100644
index 0000000..6f86969
--- /dev/null
+++ b/src/main/java/ReusingClassesLabs/SuperHuman.java
@@ -0,0 +1,34 @@
+package ReusingClassesLabs;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class SuperHuman extends Human {
+ protected String alignment;
+ protected String heroName;
+ protected String superAbility;
+
+ public String getAlignment(){
+ return alignment;
+ }
+
+ public void setAlignment(String alignment){
+ this.alignment = alignment;
+ }
+
+ public String getHeroName(){
+ return heroName;
+ }
+
+ public void setHeroName(String heroName){
+ this.heroName = heroName;
+ }
+
+ public String getSuperAbility(){
+ return superAbility;
+ }
+
+ public void setSuperAbility(String superAbility){
+ this.superAbility = superAbility;
+ }
+}
diff --git a/src/test/java/ReusingClassesLabsTest/InventoryManagerTest.java b/src/test/java/ReusingClassesLabsTest/InventoryManagerTest.java
new file mode 100644
index 0000000..0adec44
--- /dev/null
+++ b/src/test/java/ReusingClassesLabsTest/InventoryManagerTest.java
@@ -0,0 +1,22 @@
+package ReusingClassesLabsTest;
+
+import ReusingClassesLabs.InventoryManager;
+import ReusingClassesLabs.Product;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * Created by randallcrame on 1/18/17.
+ */
+public class InventoryManagerTest {
+
+ Product pepsi = new Product("pepsi",3.92, 2000);
+ InventoryManager inventoryListHouston = new InventoryManager();
+ @Test
+ public void sumOfInventoryTest(){
+ inventoryListHouston.addToInventory(pepsi);
+ double expected = 7840;
+ double actual = inventoryListHouston.sumOfInventory();
+ Assert.assertEquals(expected,actual, 0.0);
+ }
+}