implement new-post function to print new-post-name