Allows to query different classes. Closes #17