write piecewise function from a graph lesson (stop at 4:51)