Source code from tutorial for students taking CMPT300, Spring 2013, SFU Surrey