This contains all the code used in my JIW.