Well... finished part a of the pi exercise. Finally.