Implemented map on iterable
added foreach to iterable