Moves problem 6 to notebook format
Ported problem 7 to notebook