finished problem 2
finished problem 4
finished problem 5