Add ruby code 'give attr_accessor to instance variable, and test with rspec'