implemented Post repository as service