">Simple protocol with methods using custom type</a></li>
</ul></li>
<li><a href="#example4">Example 4:</a> static

<ul>
<li><a href="#example4.1">Simple protocol with static methods and properties</a></li>
</ul></li>
<li><a href="#example5">Example 5:</a> closures as attributes

<ul>
<li><a href="#example5.1">Working with non escaping closures</a></li>
<li><a href="#example5.2">Working with escaping closures</a></li>
<li><a href="#example5.3">Using completion block based approach</a></li>
</ul></li>
<li><a