implement the comment functionality