updated inherited_method.rb