added source for tutorial 2