Adding query functionality
bob