First revision of Pi calc