use interface AttributeQuery instead of class Attributes

see issue #73