adding solution to map and lambda function challenge