Implemented a struct for post metadata.