iterator added to Posts class