Tutorial examples, taken from http://www.codeproject.com/Articles/523444/D-crash-course