Solution to all exercises