Please see the following two examples