first attempt at map