Manage objects in map class