refactor year class, one 12.times loop