<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def Update(self, data):
 """Updates a Dirichlet distribution. data: sequence of observations, in order corresponding to params """

        m = len(data)
        self.params[:m] += data