added and and wrote test prog