You can adapt this trick to suit your needs—and use it with or without a literal jar.