moved Treasure to its own class