updated the work section to iterate through the object.