added the  class to represent the queries.