Miscellaneous programming exercises