added another test program with output