Use instance variables instead of a hash for documents