answer to bind
answer to implement map with reduce