Finish problem 6 (not best solution) & template 7.