Allow subclassing Resource