Can someone give me an explanation with intuition as to why I can loop over this one class method using my other class method according to example below? I have another code