upload API homework

Why did you choose to use `map` instead of `each` in your program?