coding for test program