<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tween2(self, val, frm, to):
 """ linearly maps val between frm and to to a number between 0 and 1 """

        return self.tween(Mapping.linlin(val, frm, to, 0, 1))