Implementing each using underscore