Simple solution to problem 6
Some more solutions to 6