<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 Beta distribution. data: pair of int (heads, tails) """

        heads, tails = data
        self.alpha += heads
        self.beta += tails