Wrapped code in main-function
map() instead of repeat assignment