adding get_coeffs for getting the coefficients directly