code: def find_by(self, **kwargs):
          
          result = self.where(**kwargs).first()
          if result:
              return result
          else:
              raise RecordNotFound(kwargs)
docs: Find first record subject to restrictions in +kwargs+, raising
          RecordNotFound if no such record exists.