created a map class and maploader