added some date arithmetic stuff, finished chapter 5, i hate git so much