added an example, removed unused stuff