Small refactoring, use a values function on objects, perc function
Use a function to map over objects