Source: http://www.egr.unlv.edu/~eebag/Chap 3 Solutions.pdf