Added exercises from 1.29 to 1.34, plus corrections and refactoring.