add class for handling entries and saving to file