Step by max number in problem 5
Add some documentation to problem 8