Now it should look like this image (I hope you are following)
7. Now middle mouse button drag ramp over Surface Shader > Other > in the connection editor, connect Out Color to Out Color.
8. In your ramp attributes under ramp, set your colors that you want to use and set your Interpolation to none, to get that cartoon shader look.
9. Now to get that outline!
Go to your Shading Groups > find your SurfaceShader 1SG > in Attributes click on mental ray > contour shader to open up the mental ray materials.
10. in the mental ray materials click on contour_shader_simple
Now you should have a contour shader simple, set the Width to 0.050 (for the lines I have on my models) The higher the numer the wider the lines, the lower the thinner.
11. Now go to your render gobal> render using to mental ray. Set your min sample level to 1 and max sample level to 2.