An IV estimator for a functional coefficient model with endogenous discrete treatments. (3rd July 2021)