Removed extra code in examples