Problem set 7 from cs50 (http://cs50.net), called cs50 finance.