I have problems when trying to differentite Zbeta respect to b and then defining a function with Zbeta respect to other variable which was a parameter... how's the proper way to proceed?