Added tutorial 2 code