simple rpn-query class