used new diag_matrix() and matrix from lst constructor