class User
  attr_reader :name

  def initialize(name)
    @name = name
  end

  def authenticated?
    if admin? or special_persmission?
      true
    else
      raise "not authenticated"
    end
  end

  def admin?
    @name == 'Bob'
  end

  def special_persmission?
    false
  end
end
