Program for learning Pi