Cleanup. Added legend to other examples.