piecewise functions explained - Search