piecewise functions example 2