Updated index sample to show post object retrieval