Deleted from data.h and added reset function to data.c