class for handling the user queries.