use words.Length instead of hardcoded values