Code for TCP's Tutorials 7-10