This section contains 3 code diff snippets, but the above description is only related to the last sample.