https://courses.grainger.illinois.edu/ece556/sp2020/hw3-F2020.pdf