added lots to problem 5
added lots to problem 5