http://www.quackquackhonk.com/2015/08/06/composing-a-piece-part-1/
Composing a piece part 1