Solved problems 5 and 6 (did 5 by hand and checked using a program).
Added skeleton for 7.