Adds attr_accessor to sample code