worked on a preliminary solution for almost pi