def add_matrix(matrix1, matrix2):
    """
    Adds matrix2 to matrix1 in place
    """
    size = len(matrix1)
    for i in range(size):
        for j in range(size):
            matrix1[i][j] += matrix2[i][j]
    return matrix1