added numberOfYears for the program