Added solutions for problems 6-10.