Example code for different applications