add respond_to? method