Generation class inherit from Hash