I have a class animal

```
class Animal
    def initialize( a, b, c)
        @aa=a
        @bb=b
        @cc=c
    end
end

```

I'm trying to compare these instances:

```
animal_original = Animal.new(1,2,3)
animal_to_compare = Animal.new(11,2,3)

```

I need a method to compare these two instances and get the differences in terms of the name of the variable and the values.

In this case, I will need an array containing `aa` (it's the name of the variable), the value of the first object, and the value of the second to be like this:

```
["aa", "1", "11"] #returned value

```

I tried to do it getting all the instance variables of the object, and converting them to a map to make the compare more easily with this function:

```
  def inst_vars obj
     obj.instance_variables.map do |att|
       { att => obj.instance_variable_get(att) }
     end
  end

```

But I cannot accomplish this. How can I do it to make the comparison and get all the values that I need?