https://courses.grainger.illinois.edu/ece329/sp2025/secure/past_exams/329sp17_exam2_sol.pdf