This is how I do map code. (ignore the comments) sorry for the late reply.