Working on data structure to store the recurrence details.