Updated example3 from latest source