Map is now in form of a function. Ready for data(As long as I did the whole function thing correctly