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