class Dog {
  String name, says;
}

class BarkingDogs {
  public static void main(String[] args) {
    Dog dog1 = new Dog();
    dog1.name = "spot";
    dog1.says = "Ruff!";

    Dog dog2 = new Dog();
    dog2.name = "scruffy";
    dog2.says = "Wurf!";

    System.out.println(dog1.name + ": " + dog1.says);
    System.out.println(dog2.name + ": " + dog2.says);
  }
}

@@ -243,24 +243,100 @@
 = %22Wurf!%22;%0A%0A
+    Dog spot = new Dog();%0A    spot.name = %22spot%22;%0A    spot.says = %22Ruff!%22;%0A%0A
     System.o
@@ -430,15 +430,237 @@
 2.says);
+%0A%0A    System.out.println(dog1.equals(spot));%0A    System.out.println(dog1 == spot);%0A    System.out.println(dog1.name == spot.name);%0A    System.out.println(dog1.says == spot.says);%0A%0A    System.out.println(dog1.equals(dog2));
 %0A  %7D%0A%7D%0A

Add exercise 6, test for comparison for all references