While the 7treasure.rb program may lay the foundations for a game containing a variety of different types of object, its code is still repetitive. After all, why have a Thing class which contains a name and a Treasure class which also contains a name? It would make more sense to regard a Treasure as a ‘type of’ Thing. In a complete game, other objects such as Rooms and Weapons might be yet other ‘types of’ Thing. It is clearly time to start working on a proper class hierarchy. That’s what we shall do in the next chapter