Clean up examples code