make Comment class serialisable