Below are the code examples that are used in the above text which are not included in complete form elsewhere.