Sample code for channel