My solution to exercises from TLPI.