Created the type piecewiseLinear and use it now in function. Also created the type membershipFunction which is a restriction of function to piecewiseLinear and changed fuzzyNumber to this type.