Solutions for chapter exercises in Modern Programming Languages: A Practical Introduction.