Solutions to all examples.