completed problems 9 & 10