first pi test code