human
Write me a the Python code you requested given the following:
I am working on the file "03_advanced/advanced_python_tricks.ipynb".
The first task is:
Special methods
Can you write Python code for it?
assistant
#Here is the Python code you requested.

class Pekingese(Dog):
    color = "brownish"
    def __init__(self, name):
        super().__init__(name, 15)

    def __len__(self):
        return self.size
        
    def bark(self):
        print('whif.')

p = Pekingese("wang")
len(p)