graphics and changes for tutorial 2