Added insert function to Comment class