Updated example codes