function 'postItem' implemented.