More sample code for illustration