https://www.vuinsider.com/2019/11/cs201-assignment-2-solution-fall-2019.html