adding assignment 5.1

Here is my solution for the assignment. I imagine there is another way to do this in lodash.