Subclassing example