Uncommented and made implementation of `iterator` compile