added the basic version of pi computation