Rewrite the Function map methord
add base function file