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