Fixing the way I filtered through the dictionary to use comprehension instead of a lambda. #4