Struct is used instead of hash. #map method is added