chap7 pi approximation