start doing composition for piecewise function