finished problem #5
added problem 3
added problem 8