Add programming exercise 5.2