Graphing a piecewise-defined function - problem type 1