Finalizing the sample application.