<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_index_amount(cls, matrixpos, amt):
 """ Factory method for constructing a Deformation object from a matrix position and amount Args: matrixpos (tuple):
 tuple corresponding the matrix position to have a perturbation added amt (float):
 amount to add to the identity matrix at position matrixpos """

        f = np.identity(3)
        f[matrixpos] += amt
        return cls(f)