Miscellaneous code for practice and learning.