At the top of myadoptsview.php add
PHP Code:
use Resource\Native\Arrays;
use Resource\Collection\ArrayList;
to the list already there. (He only had us adding one of these, I think we need both?)
Then all you have to do replace the index function with the one IntoRain provided.