class Hero
  def initialize (name, health=100)
    @name = name.capitalize
    @health = health
  end

  def name
    @name
  end

  def power_up
    @health += 10
  end

  def power_down
    @health -= 10
  end

  def hero_info
    "#{@name} has a health of #{@health}"
  end
end

#hero = Hero.new 'miles'
#puts hero.power_up
#puts hero.power_down
#puts hero.hero_info
