hw6 assignment 2024 - solution.pdf