Implement logic for getComment() and addComment()