Graphing a piecewise-defined function - Problem type 3