hw4 assignment 2024 sol.pdf