Refactored to use loop toiterate "by_5" array