work in progress newtonBEq class