completed stdin test program