New newset.c and newset.h files