task 06

also use forEach for objects (#1)