1. 3
  1.  

  2. 2

    The code can be found from this link here on lobste.rs