organize code for demos