First Betti Number Done

Now coding contraction