got graphics to work. part a and b of 1