But this class does not implement all method of this interface. And why is it using duck-typing at all when there is an interface?