Nice. For a deeper understanding, a nice book on two-party computations <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Efficient-Secure-Two-Party-Protocols-Constructions&#x2F;dp&#x2F;3642143024&#x2F;ref=sr_1_4?ie=UTF8&amp;qid=1455280101&amp;sr=8-4&amp;keywords=yehuda+lindell" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Efficient-Secure-Two-Party-Protocols-C...</a>.