Bygone Punishments by Andrews, William
 is a Project Gutenberg book, now on Github.