packagelib// History represents a list of elements ordered by time.typeHistoryinterface{// Add a new element to the historyAdd(string)// Get the next element in historyNext()string// Get the previous element in historyPrev()string// Reset the current location in historyReset()}