moved string[] months to class attribute