Added example 318.
Code style tweaks.
Added example 320.
Added example 322.