added the average test program