adding empty query to Stack, and other example code