Sheet 3, Software exercise 1