Trying to debug my for loops and return object.