added the function to create comment