Finished sheets 2 and 3, and code for sheet 3.