Complex Queries class added