Added an example using when.#