Added "year" variable to for loop in sample template