2 can't pass


#1


https://www.codecademy.com/courses/ruby-beginner-en-32cN3/0/2?curriculum_id=5059f8619189a5000201fbcb


Your code doesn't look quite right. Feel free to peek back at the code in the first exercise if you need help!

(ruby):7: syntax error, unexpected $end, expecting keyword_end


class Account
  attr_reader :name, :balance
  def initialize(name, balance=100)
    @name = name
    @balance = balance
  end


#2

Hi you didn't close the class Acount

class Account
  #here put your code
end

#3

I tried that myself, it didn't work, showed the same error.

class Account
#here put your code
end
attr_reader :name, :balance
def initialize(name, balance=100)
@name = name
@balance = balance
end


#4

Hi like this line of your code says

class Account
#here put your code
end

you should put your code between class Account and end