Using is_a? and adding depend destroy