defining pi string
defining generate pi until
calling generate pi until