def construct(self, x, y):
    i = self.i
    out = self.zero
    while (i < self.max_cycles):
        self.weight = i
        if (out <= 20):
            self.weight = i
            out = ((x * y) + out)
        i = (i + 1)
    if (out >= 30):
        self.weight = out
        out = (out - 30)
    return (out, self.weight)
def construct(self, x, y):
    i = self.i
    out = self.zero
    while (i < self.max_cycles):
        self.weight = i
        if (out <= 20):
            self.weight = i
            out = ((x * y) + out)
        i = (i + 1)
    if (out >= 30):
        self.weight = out
        out = (out - 30)
    return (out, self.weight)