Misc Code that was not part of the main application in the book