I added my (long) alternative version to ex 4.