Add code for the sample application