Added sample codes for demonstration