Investigating Piecewise Functions