I defined a class (see below). I then try to call a method but it loops through 3 times despite it only being called once and there is no loop.
Here is the class: