import random
class Coin:
    def __init__(self, rare=False, clean=True,**kwargs):
        for key,value in kwargs.items():
            setattr(self,key,value)
        self.is_rare = rare
        self.is_clean = clean

        if self.is_rare:
         self.value = self.original_value * 1.25
        else:
            self.value = self.original_value
        if self.is_clean:
            self.color = self.clean_color
        else:
            self.color = self.rust_color
    def rust(self):
        self.color = self.rusty_color

    def flip(self):
        heads_options = [True, False]
        choice = random.choice(heads_options)
        self.heads = choice

class Pound(Coin):
    def __init__(self):
        data = {"original_value": 1.00, "clean_color": "gold", "rusty_color": "greenish"
            , "num_edges": 1, "diameter": 22.5, "thickness": 3.15, "mass": 9.5}
        super().__init__(**data)

one_pound_coin=Pound()
print(one_pound_coin.color)
one_pound_coin.rust()
print(one_pound_coin.color)