Refactored to use Array#each