Refactor program
Implement scipy.odr method