Added subclass snippet