Complete example codes