subclassing example formatted