first stubs of a pi calculator