A tutorial for application development with Substance D