These examples are very simple. You probably want to complicate them a bit for your uses. :) Also, if you haven't already, go back and read the documentation!