exercise 1 of the lecture 'computer graphics'