adapting the JplQuery class to use the new QuerySolution class