after tutorial 8. Now draws lines to the screen