Added basic query class and example