Final version, all parts complete and tested. test.cpp replaces nihy_asgnmt4.cpp