One more thing which you should know is that you do not need to specify
return statement if it's the last statement of the method in ruby. So
instead of:

def name
  return @name
end

You can write :

def name
  @name
end

Mayank