pragma solidity >0.4.99 <0.6.0;

contract OriginalPost {
  event Posted(uint256 postIdx, string data);
  uint256 public postIdx;

  function Post(string memory data) public {
    emit Posted(postIdx, data);
    postIdx += 1;
  }
}