Group3 refactoring by Jejo Koola for min attendance

I took out the old function "AttendanceGreaterThanFive" and made it more general.