Solved our each method
Passed proc object to map method
Solved recursive map