Exercises from Chris Pine's Ruby book