Hw6: Logically finished, debugging.