exercise 10: wedding numbers