public class Bag
{
    public Bag (String type)
    {
        _type = type;
    }

    private String _type;
}
@@ -1,12 +1,33 @@
+import java.util.*;%0A%0A
 public class
@@ -97,16 +97,543 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString ()%0A    %7B%0A        return %22Bag coloud: %22+_type;%0A    %7D%0A%0A    @Override%0A    public int hashCode ()%0A    %7B%0A        return Objects.hash(_type);%0A    %7D%0A%0A    @Override%0A    public boolean equals (Object obj)%0A    %7B%0A        if (obj == null)%0A            return false;%0A%0A        if (this == obj)%0A            return true;%0A        %0A        if (getClass() == obj.getClass())%0A        %7B%0A            Bag temp = (Bag) obj;%0A%0A            return tenp._type.equals(_tyoe);%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A%0A
     priv

Update Bag.java