<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_category(self, category):
 """Add a category assigned to this message :rtype: Category """

        self._categories = self._ensure_append(category, self._categories)