attr_accessor and query to instance added to knowledge.rb