Merged Hw8 and Hw9