sample codes for personal use